#!/bin/bash

fruit=apple
count=5

echo "We have $count ${fruit}s"
# -> We have 5 apples


# 用语句给变量赋值
for file1 in `ls ../shell`; do
  echo $file1
done

echo "---------------"

for file2 in $(ls /etc); do
  echo $file2
done

for skill in Ada Coffe Action Java; do
    echo "I am good at ${skill}Script"
done

# 变量可以重新赋值
your_name="tom"
echo $your_name
your_name="alibaba"
echo $your_name

# 只读变量不可改变，否则报错
myUrl="https://www.google.com"
readonly myUrl
# myUrl="https://www.runoob.com" // ERROR: This variable is read only.

# 删除变量
variable_name=ZHANG_SAN
echo $variable_name
unset variable_name
echo $variable_name

